home *** CD-ROM | disk | FTP | other *** search
/ Champak 120 / Vol 120.iso / games / magic_ba.swf / scripts / DefineButton2_156 / BUTTONCONDACTION on(keyPress Left).as next >
Text File  |  2010-11-09  |  769b  |  28 lines

  1. on(keyPress "<Left>"){
  2.    nowshooting = eval("_root.ball" add _root.totalballs);
  3.    if(80 < getProperty(nowshooting, _X))
  4.    {
  5.       setProperty(nowshooting, _X, getProperty(nowshooting, _X) - 25);
  6.       setProperty(_root.nextball, _X, getProperty(nowshooting, _X));
  7.       setProperty(_root.arrow, _X, getProperty(nowshooting, _X));
  8.       _root.startposition -= 25;
  9.       if(_root.imdoingback < 1)
  10.       {
  11.          tellTarget("_root.char")
  12.          {
  13.             gotoAndStop("left");
  14.             play();
  15.          }
  16.          wheelturn = 1;
  17.          while(wheelturn < 9)
  18.          {
  19.             tellTarget("_root.wheel" add wheelturn)
  20.             {
  21.                gotoAndPlay(7);
  22.             }
  23.             wheelturn++;
  24.          }
  25.       }
  26.    }
  27. }
  28.